package com.alameda.api.manage;

import com.alameda.commonpent.mp.BaseService;
import com.alameda.manage.dto.BusinessIndicatorDTO;
import com.alameda.manage.pojo.BusinessIndicatorDO;
import com.alameda.manage.vo.BusinessIndicatorVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 技术指标 业务逻辑层
 *
 * @author Lv
 * @date 2024/08/04
 */
public interface BusinessIndicatorService extends BaseService<BusinessIndicatorDO> {
    /**
     * 查询业务指标列表
     *
     * @param businessIndicatorDTO 技术指标数据传递对象
     * @return
     */
    IPage<BusinessIndicatorVO> listBusinessIndicator(BusinessIndicatorDTO businessIndicatorDTO);

    /**
     * 添加或修改业务指标
     *
     * @param businessIndicatorDTO 技术指标数据传递对象
     * @return
     */
    Boolean saveOrUpdateBusinessIndicator(BusinessIndicatorDTO businessIndicatorDTO);

    /**
     * 导出业务指标数据
     *
     * @param businessIndicatorDTO 技术指标数据传递对象
     */
    void export(BusinessIndicatorDTO businessIndicatorDTO);

    /**
     * 通过项目id集合删除
     *
     * @param projectIdList id集合
     * @return
     */
    Boolean removeByProjectIdList(List<Long> projectIdList);
}
